import { createCurveNetwork } from "./findTrackPath.ts"
import { Vector3, CatmullRomCurve3 } from "three";

self.addEventListener("message", function (e) {
  const curveList = e.data[0]
  const threshold = e.data[1]
  const curveNetwork = createCurveNetwork(curveList, threshold)
  postMessage(curveNetwork)
})